<?php if (!defined('THINK_PATH')) exit();?><!-- 引入头部 -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>管理后台</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">


<!-- 新 Bootstrap 核心 CSS 文件 -->
<!--<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">-->
 <!-- Loading Bootstrap -->
<link href="/Public/FlatUI/css/vendor/bootstrap.min.css" rel="stylesheet">

<!-- Loading Flat UI -->
<link href="/Public/FlatUI/css/flat-ui.css" rel="stylesheet">


<link rel="shortcut icon" href="/Public/images/logo/1155606.png">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/Public/FlatUI/js/vendor/html5shiv.js"></script>
  <script src="/Public/FlatUI/js/vendor/respond.min.js"></script>
<![endif]-->

  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="/Public/FlatUI/js/vendor/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/Public/FlatUI/js/flat-ui.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<!--<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>-->
<link rel="stylesheet" href="/Public/css/home.css">
 <style type="text/css">
  body {
    padding-top: 70px;

  }

</style>
</head>
<?php
 $currentURL = 'http'; if ($_SERVER["HTTPS"] == "on") { $currentURL .= "s"; } $currentURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $currentURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]; } else { $currentURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; } ?>
<!-- Static navbar -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
      </button>
      <a class="navbar-brand" href="#">
          <img src="/Public/images/logo/1155606.png" style="margin:0; padding:0;margin-top:-5px;" height="32px" width="32px">
          <font style="font-weight: bold; font-family: monospace;">beginner 管理后台</font>
        </a>
    </div>
    <div class="navbar-collapse collapse">

      <ul class="nav navbar-nav navbar-right">
        <li class=""><a href="<?php $_SERVER['SERVER_NAME']; ?>/index.php?m=Home&c=Index&a=index">返回主页</a></li>

        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">设置 <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="#">个人中心</a></li>
            <li><a href="#">修改密码</a></li>
          </ul>

        </li>
         <li>
            <a>欢迎您，<?php echo ($_SESSION['USERNAME4SESSION']); ?>&nbsp;&nbsp;</a>
        </li>
        <li>
            <a href="<?php echo U('Home/Index/logout');?>" data-toggle="modal"
               style="float:right; margin-left:-30px;">退出</a>
        </li>
      </ul>

    </div><!--/.nav-collapse -->
  </div>

</div>


<link rel="stylesheet" href="/Public/css/admin/index.css">
<script type="application/javascript" src="/Public/js/home/index.js"></script>
<script type="application/javascript" src="/Public/js/common/common.js"></script>
<style type="text/css">
body {
    font-size: 13px;
}


</style>

<body>


<div class="container-fluid">

<!-- 首先屏幕分为2列 -->
<div class="row">
<!--    左则的菜单栏 -->
   
<div class="col-md-2 col-sm-2">
    <div class="list-group">
      <a href="<?php echo U('Home/Index/index');?>" class="list-group-item">
        发表文章
      </a>
      <a href="<?php echo U('Home/Index/articleType');?>" class="list-group-item">文章分类</a>
    </div>
</div>


    <!-- 如果是中大屏幕则分为2列，在小屏幕就显示一列 -->
    <div class="col-md-10 col-sm-10 col-xs-12">
        <div class="panel panel-default">
          <div class="panel-heading" style="height:40px;">
              <div class="row">
                  <div class="col-sm-3 col-md-3 col-xs-3 my-breadcrumb"><span class="">文章分类 > 列表</span></div>
                  <div class="col-lg-3 col-sm-4 col-md-4 col-xs-4 col-sm-offset-5 col-md-offset-5 col-lg-offset-6 col-xs-offset-5">
                      <a class="btn btn-info active " style="padding:4px 8px;" href="<?php echo U('Home/Index/addArtType');?>">
                        新增文章分类
                      </a>
                      &nbsp;&nbsp;
                      <a class="btn btn-default" style="padding:4px 8px;"
                         onclick="delAll('<?php echo U('Home/Index/delAllArtType');?>', '确实要删除全部的分类吗?')" href="#">
                        删除全部
                      </a>
                  </div>
              </div>
          </div>
        </div>


        <div class="main-content">

            <table class="table table-striped table-bordered table-hover table-condensed">
              <thead>
                <tr class="info">
                  <td>序号</td>
                  <td>编号</td>
                  <td>名称</td>
                  <td>操作</td>
                </tr>
              </thead>
              <tbody>
                <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                    <td><?php echo ($vo["id"]); ?></td>
                    <td><?php echo ($vo["type_no"]); ?></td>
                    <td><?php echo ($vo["type_name"]); ?></td>
                    <td>
                        <a href="<?php echo U('Admin/Index/addArtType', array('id' => $vo['id']));?>">修改</a>
                        ｜
                        <a href="<?php echo U('Admin/Index/delArtType', array('id' => $vo['id']));?>">删除</a>
                    </td>
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
              </tbody>
            </table>

            <div class="container">
                <div class="pagination pull-right" style="margin-right:160px;">
                  <ul>
                    <li class="previous">
                      <a href="#" class="fui-arrow-left"></a>
                    </li>

                    <!-- Make dropdown appear above pagination -->
                    <li class="pagination-dropdown dropup">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fui-triangle-up"></i>
                      </a>
                      <!-- Dropdown menu -->
                      <ul class="dropdown-menu">

                        <li>
                          <a href="#">10-20</a>
                        </li>
                      </ul>
                    </li>

                    <li class="next">
                      <a href="#" class="fui-arrow-right"></a>
                    </li>
                  </ul>
                </div>
            </div>

        </div> <!-- main-content -->
</div>

</div>  <!-- /row -->

</div> <!-- /container -->

</body>

<!-- 引入尾部 -->

<center>
<div class="container-fluid my-container-style">
    <footer class="footer" style="color:#000; padding-top:15px;">
        <p>
            CopyRight ©2014，Site Build By Ubuntuvim.
        </p>
        <p>
            广西梧州富民三路82号
        </p>
    </footer>
</div>
</center>